home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / demo / medit.zip / CEDIT.TXT < prev    next >
Text File  |  1994-09-13  |  3KB  |  69 lines

  1. The CMagmaEdit Class
  2. --------------------
  3.  
  4. The CEdit editor class from the Microsoft Foundation Classes (MFC) has
  5. a limitation in that it cannot edit more than 64K bytes of text.
  6. The Magma Editor DLL overcomes this restriction by allowing you to edit
  7. text as large as the memory which Microsoft Windows will globally allocate.
  8.  
  9. We have created a new MFC class called CMagmaEdit which is inherited from
  10. the CEdit class. Most of the editing operations which are supported
  11. by the CEdit class are also supported by the CMagmaEdit class. In addition,
  12. the Magma Editor DLl has the following features :
  13.  
  14. - Regular expression search and substitution
  15.  
  16. - Various block operations. Line marking, column marking, block
  17.   marking, and discontiguous line marking.
  18.  
  19. - Keyboard macros
  20.  
  21. - Messages to read and write to files.
  22.  
  23. - More varieties of cursor movement. Ability to jump to a specific line,
  24.   and to set bookmarks in the text.
  25.  
  26. - The ability to be in overstrike as well as in insert mode.
  27.  
  28. A full list of features can be found by reading the file EDITOR.DOC which
  29. is enclosed in this file.
  30.  
  31.  
  32. The CMagmaEditView Class
  33. ------------------------
  34.  
  35. The CEditView class from the Microsoft Foundation Classes is used as a
  36. wrapper around the CEdit class in order to create text editing windows
  37. which contain more capabilities than the standard CEdit class offers.
  38. For example, using the CEditView class, you can easily build an MDI-based
  39. text editor which incorporates search-and-replace and printing.
  40.  
  41. The Multipad sample application is a good demonstration of the CEditView
  42. class. In a few lines, one can build a full MDI-based text editor.
  43. We have enhanced Multipad so that it uses the CMagmaEditView and the
  44. CMamaEdit classes. We have also enhanced Multipad so that more information
  45. is displayed in the status line.
  46.  
  47. Using the CMagmaEditView class instead of the CEditView class is as
  48. easy as substituting the string 'CMagmaEditView' for 'CEditView'.
  49. The only change which we originally made in the Multipad source
  50. code to use the CMagmaEditView class was in the following statement :
  51.  
  52.     AddDocTemplate(new CMultiDocTemplate(IDR_TEXTTYPE,
  53.         RUNTIME_CLASS(CPadDoc), RUNTIME_CLASS(CMDIChildWnd),
  54.         RUNTIME_CLASS(CEditView)));
  55.  
  56.                was changed to
  57.  
  58.     AddDocTemplate(new CMultiDocTemplate(IDR_TEXTTYPE,
  59.         RUNTIME_CLASS(CPadDoc), RUNTIME_CLASS(CMDIChildWnd),
  60.         RUNTIME_CLASS(CMagmaEditView)));
  61.                               ^^^^^^^^^^^^^^
  62.  
  63. We have enclosed the full source code to the CMagmaEditView and 
  64. CMagmaEdit classes. The files of interest are MAGMAED.CPP and
  65. MAGMAED.HPP. You may feel free to enhance these files, but if
  66. you do, we at Magma Systems would appeciate hearing about any
  67. good changes you made.
  68.  
  69.